package code;
/**
 * 
 * @author 
 *
 * This class represents the item info node.
 * It is the node in the item list.
 */
public class ItemInfoNode {
	private ItemInfo info;
	private ItemInfoNode prev;
	private ItemInfoNode next;
	public ItemInfoNode(){
		this.info = new ItemInfo();
		this.prev = null;
		this.next = null;
	}
	/**
	 * 
	 * @return  the item info
	 */
	public ItemInfo getInfo() {
		return info;
	}
	/**
	 * 
	 * @param info  the item info to set
	 */
	public void setInfo(ItemInfo info) {
		this.info = info;
	}
	/**
	 * 
	 * @return the previous ItemInfoNode
	 */
	public ItemInfoNode getPrev() {
		return prev;
	}
	/**
	 * 
	 * @param prev   the previous ItemInfoNode to set
	 */
	public void setPrev(ItemInfoNode prev) {
		this.prev = prev;
	}
	/**
	 * 
	 * @return the next ItemInfoNode
	 */
	public ItemInfoNode getNext() {
		return next;
	}
	/**
	 * 
	 * @param next  the next ItemInfoNode to set
	 */
	public void setNext(ItemInfoNode next) {
		this.next = next;
	}
}
